import request from '@/utils/request'

// 导航
export function marketNav (path, params) {
  return request({
    url: '/admin/' + path + '/list',
    method: 'get',
    params: params
  })
}

// 测评采购
export function mchGaugeAdd (data, params) {
  return request({
    url: '/admin/mchGauge/add',
    method: 'post',
    data: data,
    params: params
  })
}

// 课程采购
export function mchCourseAdd (data, params) {
  return request({
    url: '/admin/mchCourse/add',
    method: 'post',
    data: data,
    params: params
  })
}

// 咨询师采购
export function mchCounselorAdd (data, params) {
  return request({
    url: '/admin/mchCounselor/add',
    method: 'post',
    data: data,
    params: params
  })
}



// 上架数据
export function UpList (path, params) {
  return request({
    url: '/admin/mch' + path + '/list',
    method: 'get',
    params: params
  })
}


// 上架
export function upListAdd (path, data, params) {
  return request({
    url: '/admin/' + path + '/update',
    method: 'post',
    data:data,
    params: params
  })
}

// 审核
export function marketFind (path, id) {
  return request({
    url: '/admin/' + path + '/find/' + id,
    method: 'get',
  })
}

